package com.example.baiguangsystem.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Calendar;
import java.util.Date;

/**
 * @Author: 27641
 * @ProjectName: BaiGuangSystem
 * @Date: 2022/01/29/16:38
 * @noinspection SpellCheckingInspection
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Author {
    private Integer authorId;
    private String authorName;
    private String authorSex;
    private Integer authorAge;
    /*加上这个注解可以接收前端数据*/
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date authorDate;
    /*输出格式化之后的日期字段*/
    private String authorDateFormat;
    private String authorOverview;

}
